package com.yourname;

import com.yourname.menu.LoginMenu;
import com.yourname.menu.RegisterMenu;
import com.yourname.store.DataStore;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        DataStore.loadData();//从文件获取所有数据
        while (true){
            System.out.println("1. 登录");
            System.out.println("2. 注册");
            System.out.println("3. 退出");
            Scanner scanner=new Scanner(System.in);
            int i = scanner.nextInt();
            switch (i){
                case 1-> LoginMenu.loginMenu();
                case 2-> RegisterMenu.registerMenu();
                case 3-> {
                    return;
                }
            }
        }
    }
}
